import time
import flask
from cls.wechat import Chat
from selenium import webdriver

# app = flask.Flask(__name__)
# chatobj = Chat()
#
# @app.route('/ls/<e>/<r>')
# def testFun(e,r):
#     return '你输入的参数是：'+e+r

def getPage():
    opts = webdriver.ChromeOptions()
    # 把chrome设置成无界面模式，不论windows还是linux都可以，自动适配对应参数
    opts.headless = False
    driver = webdriver.Chrome(options=opts)
    while 1:
        driver.get("https://www.amap.com/detail/get/detail?id=B02430I2WW&key=bfe31f4e0fb231d29e1d3ce951e2c780&x5sec=7b22617365727665723b32223a2265373131353862613130363435383766666439386339376639343932376662614349722b77754146454f44372b746a35384c65563177453d227d")

    # time.sleep(10000)

#
# @app.route('/wechat/send/<user>/<text>')
# def send(user, text):
#     return chatobj.sendmessage(user, text)

# @app.route('/wechat/login')
# def wechat():
#     return chatobj.test()

getPage()

# if __name__ == '__main__':
#     app.run(host='0.0.0.0', port=5000, debug=False)






